#ifndef db_RECORDEXCEPTION_H
#define db_RECORDEXCEPTION_H

#include <utility/String.h>

namespace serika
{
	namespace db
	{
		class RecordException
		{
		public:
			RecordException()
			{
	
			}
			RecordException(int code, const ut::Char* message)
			{
				mCode = code;
				mMessage = message;
			}
			virtual ~RecordException()
			{
	
			}
	
		public:
			int GetCode() const { return mCode; }
			const ut::String& GetMsg() const { return mMessage; }
		private:
			int mCode;
			ut::String mMessage;
		};
	}
}

#endif
